Subchains and trees topic

Subchains and trees

Subchains anchored into a parent, cross chain proofs from the parent header, and chain trees that produce a whole hierarchy in rounds.

Classes

ChainTree
A built family of chains driven in process. produce anchors children upward automatically; ChainTreeQueries.proveAccount proves any descendant from the root header.
ChildRecord
One child's entry in a dynamic registry: what the parent commits about it and what a child proof carries.
TreeNode
One chain of a family; children are subchains and must be BFT.

Extensions

AviaryChildProofs on Aviary
Proofs against a dynamic registry, and the anchor a parent takes next.
AviaryDynamicSubchains on Aviary
Subchains version 2: a parent with a dynamic policy registers children in any block and commits its registry as a Merkle tree.
AviarySubchainOps on Aviary
Registry operations: the unsigned bodies a registrar then signs.
AviarySubchainOpSigning on Aviary
Authorising registry operations as a registrar.
AviarySubchainProofs on Aviary
Subchain anchors and cross chain proofs.
AviarySubchains on Aviary
Subchains: registering children and binding them to a parent.
AviaryTrees on Aviary
Chain trees: a declared family of chains built and driven together.
ChainRegistry on Chain
The parent side of a chain with a dynamic policy: registry operations, records and child proofs.
ChainSubchains on Chain
The parent side of a chain: anchoring children and proving into them.
ChainTreeQueries on ChainTree
Read only views and proofs of a chain tree.
ChainTreeRounds on ChainTree
Driving every chain of a family together.
TreeNodeBuilding on TreeNode
Fluent construction and inspection of chain families.

Enums

ChildStatus
Whether a parent still anchors a child.
RegistrarScheme
The signature scheme of a registrar key: the transaction schemes.

Typedefs

FinalizedHook = void Function(int chainId, Uint8List block)
Observes a finalized block on a chain.
RegistrarEntry = ({Uint8List publicKey, RegistrarScheme scheme})
A registrar: the scheme and public key allowed to authorise registry operations on a parent with a dynamic policy.
RegistryCounts = ({int authorityEpoch, int open, int records})
The sizes of a dynamic registry and its authority epoch, which grows by one each time the registrar set is replaced.
TreeValidator = ({int power, Uint8List publicKey, Uint8List? secret})
A tree validator; secret is null when this process does not hold it.
TxSource = List<Uint8List> Function(int chainId, int timestamp)
Supplies the encoded transactions a chain includes when it produces.